package com.zhijian.medical.dao.local;

import com.zhijian.medical.entity.po.NgsHszbq;
import com.zhijian.medical.entity.vo.request.NgsHszbqSearchVo;
import com.zhijian.medical.entity.vo.response.NgsHszbqVo;

import java.util.List;

public interface NgsHszbqMapper {
    int deleteByPrimaryKey(Long id);

    /**
     * 根据实验id删除
     *
     * @param ngsId
     * @return
     */
    int deleteByNgsId(Long ngsId);

    int insert(NgsHszbq record);

    int insertSelective(NgsHszbq record);

    NgsHszbq selectByPrimaryKey(Long id);

    /**
     * 根据实验id查询
     *
     * @param ngsId
     * @return
     */
    NgsHszbq selectByNgsId(Long ngsId);

    int updateByPrimaryKeySelective(NgsHszbq record);

    int updateByPrimaryKey(NgsHszbq record);

    int count(NgsHszbqSearchVo ngsHszbqSearchVo);

    List<NgsHszbqVo> selectList(NgsHszbqSearchVo ngsHszbqSearchVo);

    NgsHszbqVo selectVoById(Long id);

    /**
     * 根据实验id查询vo
     *
     * @param ngsId
     * @return
     */
    NgsHszbqVo selectVoByNgsId(Long ngsId);
}